package net.mikoo.seals.agent.biz.services;

import net.mikoo.seals.agent.common.PageModel;
import net.mikoo.seals.agent.model.Party;
import net.mikoo.seals.agent.model.PartyQuery;

public interface PartyServices {
	
	public Party loadByPrimaryKey(Long partyId);
	
	public void modifyByPrimaryKey(Party party);
	
	
	/**
	 * 分页查询当事人信息
	 * @param partyQuery
	 * @return
	 */
	public PageModel<Party> loadToPage(PartyQuery partyQuery);

	/**
	 * @author huangxm
	 * 校验关键字是否存在
	 * @param verifykey   验证字段
	 * @param excludeKey  排除验证字段
	 * @param type   username:用户名，mobile：手机号码，邮箱：email
	 * @return
	 */
	public Boolean checkExist(String verifykey, String excludeKey,String type);

	
	/**
	 * 创建当事人
	 * @author huangxm,katy
	 * @param party partyRole
	 * @return
	 */
	public Party create(Party party);
	
	/**
	 * 删除当事人
	 * 
	 * @param partyId
	 * @return 删除结果
	 */
	public void deleteByPrimaryKey(Long partyId);

	public void changeStatus(Long partyId, String status);

}
